projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4daea6f
)
km/common: i2c deblock: enabled print of i2c deblock status
author
Stefan Bigler
<
[email protected]
>
Mon, 4 Jul 2011 22:24:02 +0000
(22:24 +0000)
committer
Wolfgang Denk
<
[email protected]
>
Thu, 28 Jul 2011 13:40:48 +0000
(15:40 +0200)
Enable printout of i2c deblocking status if chips were in block
state or deblocking failed.
Signed-off-by: Stefan Bigler <
[email protected]
>
cc: Valentin Longchamp <
[email protected]
>
cc: Heiko Schocher <
[email protected]
>
cc: Wolfgang Denk <
[email protected]
>
board/keymile/common/common.c
patch
|
blob
|
history
diff --git
a/board/keymile/common/common.c
b/board/keymile/common/common.c
index 7f388e111d05bd71cd65abf07bf04d1b1136feea..fce9d582f23c66ba5542ed2e94b1c95ec94cf42f 100644
(file)
--- a/
board/keymile/common/common.c
+++ b/
board/keymile/common/common.c
@@
-139,6
+139,7
@@
int i2c_make_abort(void)
sda_state = get_sda();
if (scl_state && sda_state) {
ret = 0;
+ printf("[INFO] i2c abort after %d clocks\n", i);
break;
}
}
@@
-146,6
+147,8
@@
int i2c_make_abort(void)
if (ret == 0)
for (i = 0; i < 5; i++)
i2c_write_start_seq();
+ else
+ printf("[ERROR] i2c abort failed\n");
/* respect stop setup time */
udelay(DELAY_ABORT_SEQ);